package com.sunnyebuy.merchant.action;

import java.io.PrintWriter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * Title: JqueryJsonAction.java
 * </p>
 * 
 * <p>
 * Description: com.sunnyebuy.merchant.action
 * </p>
 * 
 * <p>
 * Copyright: Copyright (c) 2008-2012 All rights reserved.
 * </p>
 * 
 * <p>
 * Created: 2012-2-1 上午10:57:50
 * </p>
 * 
 * @author Wenzhong Gu
 * 
 * @version 1.0
 */
@Controller(value = "jqueryJsonAction")
@Scope(value = "prototype")
public class JqueryJsonAction extends MerchantBaseAction {

	private static final long serialVersionUID = -4856281106474638985L;
	Logger log = LoggerFactory.getLogger(JqueryJsonAction.class);

	public String jsonLogin() throws Exception {
		String[] names = getRequest().getParameterValues("username");
		String[] pwds = getRequest().getParameterValues("password");
		for(int i=0;i<names.length;i++){
			System.out.println(names[i]);
			System.out.println(pwds[i]);
			System.out.println("\n\n\n");
		}
		PrintWriter out = getJsonResponse().getWriter();
		out.println("sssssss");
		out.flush();
		out.close();
		return NONE;
	}

}